#!groovy
// 配置共享库
@Library('myLib')

def nexus = new org.devops.nexus()
def nexusapi = new org.devops.nexusapi()

// 环境变量
String updateType = "${env.updateType}"
String artifactUrl = "${env.artifactUrl}"

pipeline{
	agent any
    
    stages{
        stage("ArtifactUpdate"){
            steps{
                script{
                	// nexus.ArtifactUpdate(updateType,artifactUrl)
                    nexusapi.GetSingleComponent("maven-hostd","com.mycompany.app","my-app","1.1")
                }
            }
        }
    }
}